#ifndef MQTT_H
#define MQTT_H

#include <QWidget>
#include <QtMqtt/QtMqtt>
#include <QtMqtt/QMqttClient>
#include <QMessageBox>

namespace Ui {
class Mqtt;
}

class Mqtt : public QWidget
{
    Q_OBJECT

public:
    explicit Mqtt(QWidget *parent = 0);
    ~Mqtt();

private slots:
    void on_pushButton_connect_clicked();

    void connectSuccess();

    void connectError();

    void on_pushButton_subscribe_clicked();

    void on_pushButton_subscribe_2_clicked();

private:
    Ui::Mqtt *ui;
};

#endif // MQTT_H
